Chapter 5: Signal flow graphs

Comparing systems as interacting signal processors(1)
Props and presentations(18)
Props - definition and first examples(13)
  • Each object is the n-fold monoidal product of the generating object \(1\).

  • To specify a prop \(P\) it is enough to specify 5 things (and check they satisfy the rules for symmetric monoidal categories):

    1. A set \(\mathcal{C}(m,n))\) of morphisms \(m \rightarrow n\) for \(m,n \in \mathbb{N}\).

    2. For all naturals, an identity map \(n \xrightarrow{id_n} n\)

    3. For all \(m,n \in \mathbb{N}\), a symmetry map \(m+n \xrightarrow{\sigma_{m,n}} n+m\)

    4. A composition rule: given \(m \xrightarrow f n\) and \(n \xrightarrow g p\), a map \(m \xrightarrow{f;g} p\)

    5. A monoidal product on morphisms: given \(m \xrightarrow f m'\) and \(n \xrightarrow g n'\), a map \(m+n \xrightarrow{f+g} m' +n'\)

Prop(1)

A prop

A symmetric strict monoidal category \((\mathcal{C}, 0,+)\) for which \(Ob(\mathcal{C})=\mathbb{N}\) and the monoidal product on objects is given by addition.

Linked by

Prop functor(1)

A \(\ref{Prop|\emph{prop|referenced}}\) functor \(\mathcal{C} \xrightarrow F \mathcal{D}\) A functor for which

  • \(\forall n \in \mathbb{N}: F(n)=n\)

  • For all \(m_1 \xrightarrow f m_2\) and \(n_1 \xrightarrow g n_2 \in \mathcal{C}\): \(F(f))+F(g)=F(f+g) \in \mathcal{D}\)

Linked by

FinSet as prop(1)
  • The prop FinSet

  • Morphisms \(m \xrightarrow f n\) are functions from \(\bar m\) to \(\bar n\).

  • The identities, symmetries, and composition rule are obvious.

  • The monoidal product on functions is given by the disjoint union.

Linked by

Bij as prop(1)
  • Recall that a bijection is both surjective and injective.

  • There is a prop Bij where morphisms are bijections

  • \(m\ne n \implies\) \(\mathbf{Bij}(m,n)=\varnothing)\)

  • Bij is a subcategory of \(\ref{FinSet as prop|\textbf{FinSet|referenced}}\), so we can use the same monoidal product.

Correl as prop(1)

The compact closed category \(\ref{Correl as CCC|\textbf{Corel|referenced}}\) is a prop.

Rel as prop(1)
  • There is a prop Rel

  • Morphisms are relations \(R \subseteq \bar m \times \bar n\)

  • Composition with \(S \subseteq \bar n \times \bar p\) is

    • \(\{(i, k)\ |\ \exists (i, j) \in R \land \exists (j,k) \in S\}\)

  • Monoidal product is given by the coproduct, which amounts to placing the two relations side-by-side.

Linked by

Bij FinSet prop functor(1)
  • The inclusion \(\mathbf{Bij} \overset{i}{\hookrightarrow} \mathbf{FinSet}\) is a prop functor.

  • There is a prop functor \(\mathbf{Bij} \xrightarrow F \mathbf{Rel_{Fin}}\) defined by \(F(\bar{m} \xrightarrow{f} \bar{n}):=\{(i,j)\ |\ f(i)=j\} \in \bar m \times \bar n\)

Exercise 5-10(2)

For the prop \(\ref{Rel as prop|\textbf{Rel|referenced}}\), provide the five aspects of props described in the notes.

Solution(1)
  1. TODO

Exercise 5-5(1)
  1. Draw a morphism \(3 \xrightarrow f 2\) and a morphism \(2 \xrightarrow g 4\) in \(\ref{FinSet as prop|\textbf{FinSet|referenced}}\)

  2. Draw \(f+g\)

  3. What is the natural composition rule for morphisms in \(\ref{FinSet as prop|\textbf{FinSet|referenced}}\)

  4. What are the identities in \(\ref{FinSet as prop|\textbf{FinSet|referenced}}\)

  5. Draw a symmetry map \(\sigma_{m,n}\) for some \(m,n\) in \(\ref{FinSet as prop|\textbf{FinSet|referenced}}\).

Solution(0)
  1. TODO

Exercise 5-9(2)
  • A posetal prop is a prop that is also a poset.

  • In other words, a symmetric monoidal preorder \((\mathbb{N}, \leq)\) for some posetal relation \(\leq\), where the monoidal product is addition.

  • Give three examples of a posetal prop.

Solution(1)
  1. The normal meaning of \(\leq\) as less than or equal to

  2. The divisibility relation

  3. The opposite of the first example (greater than or equal to).

Linked by

The prop of port graphs(5)
Port graph(1)

A port graph

  • A special type of prop where morphisms are open, directed, acyclic port graphs \((V, in, out, i)\)

  • \(V\) is a set of vertices

  • functions \(V \xrightarrow{in, out} \mathbb{N}\) give the in degree and out degree of each vertex

  • A bijection \(\bar m \sqcup O \xrightarrow{i} I \sqcup \bar n\), where \(I = \{(v,i)\ |\ v \in V, 1 \leq i \leq in(v)\}\) and \(O=\{(v,i)\ |\ v \in V, 1 \leq i \leq out(v))\}\) are the vertex inputs and vertex outputs, respectively.

  • Furthermore, an acyclicity condition:

    • Use the bijection \(i\) to construct the internal flow graph: a graph with an arrow \(u \xrightarrow{e^{u,i}_{v,j}} v\) for every \(i,j \in \mathbb{N}\) such that \(i(u,i)=(v,j)\)

    • This graph must be acyclic

Linked by

Port graph example(1)
  • A \((2,3)\) port-graph. [Draw this]

  • Since the overall type is \((2,3)\) we know we need a box with two overall inputs and three overall outputs.

  • There are three internal boxes, meaning the vertex set is \(\{a, b, c\}\).

  • \(in(a)=1\) and \(out(a)=3\) which tells us to draw one port on the LHS and three on the RHS.

  • The bijection \(i\) tells us how the ports are connected by wires.

  • The acyclic internal flow graph is shown below [TODO Draw this]

Linked by

Port graph category(1)
  • A category PG whose objects are natural numbers and morphisms are port graphs

  • We can compose a \((m,n)\) port graph with a \((n, p)\) port graph \((V \sqcup V',[in,in'],[out,out'], i'')\)

  • \(V \sqcup V' \xrightarrow{[in,in']} \mathbb{N}\) maps elements of \(V\) according to \(in\) and elements of \(V'\) according to \(in'\) (likewise for out).

  • The bijection \(\bar m \sqcup O \sqcup O' \xrightarrow{i''} I \sqcup I' \sqcup \bar p\) is defined as \(i''(x)=\begin{cases}i(x) & i(x) \in I \\ i'(i(x))& i(x) \in \bar n \\ i'(x) & x \in O' \end{cases}\)

  • The identity port graph on \(n\) is \((\varnothing, !, !, id_{\bar n})\) where \(\varnothing \xrightarrow{!} \mathbb{N}\) is a unique function.

  • This category is a prop.

  • The monoidal product of two portgraphs... TODO

Linked by

Exercise 5-16(2)

Describe how port graph composition looks, with respect to the visual representation of Example 5.14, and give a nontrivial example

Solution(1)

Todo

Free constructions and universal properties(0)
The free prop on a signature(0)
Props via presentations(0)
Simplified signal flow graphs(0)
Rigs(0)
The iconography of signal flow graphs(0)
The prop of matrices over a rig(0)
Turning signal flow graphs into matrices(0)
The idea of functorial semantics(0)
Graphical linear algebra(0)
A presentation of Mat R(0)
Aside - monoid objects in a monoidal category(0)
Signal flow graphs - feedback and more(0)